<?php
require_once('tryPHP/preload.php');
//--
$id=get('id');
if(!is_numeric_int($id)){
    header_http_invaild_value();
    return;
}
$routeInfo=$db->getRow(sprintf('SELECT * FROM %s WHERE id=%s',$db->Table('product'),$id));

require_once('tryPHP/preload.php');
//--
$strategyId=get('id');
$strategyInfo=array('title'=>NULL,'content'=>NULL);
$strategyPreviousInfo=array('id'=>NULL,'title'=>NULL);
$strategyNextInfo=array('id'=>NULL,'title'=>NULL);
if(is_numeric($strategyId)){
    $tableName=$db->Table('strategy');
    $strategyInfo=$db->getRow(sprintf('SELECT * FROM %s WHERE id=%s',$tableName,$strategyId));
    $strategyPreviousInfo=$db->getRow(sprintf('SELECT * FROM %s WHERE id>%s ORDER BY id ASC',$tableName,$strategyId));
    $strategyNextInfo=$db->getRow(sprintf('SELECT * FROM %s WHERE id<%s ORDER BY id DESC',$tableName,$strategyId));
}